<template>
	<view class="content">
		
		<view class="top">
			<uni-icons style="margin-left: 25rpx;" type="left" size="25" color="#2c2c2c" @click="toBackPage" ></uni-icons>
		</view>
		
		<view class="form">
			
			
			<view style="width: 670rpx;margin-top: 40rpx;margin-bottom: 40rpx;font-size: 80rpx;letter-spacing: 5rpx;display: flex;flex-direction: row;">做的不够好，我们一起来改进~</view>
			
			<view class="textareaWrapper">
				<textarea :show-confirm-bar="false" style="background-color: #f5f5f5 !important;padding: 30rpx;height: 800rpx;" type="text" v-model="content" placeholder="请输入..." ></textarea>
			</view>
			<view class="loginBtn" style="margin-top: 100rpx;" @click="feedback()">
				<text class="btnValue" >提交反馈</text>
			</view>
			
			
			<view style="color: gray;margin-top: 40rpx;">历史</view>
		</view>
		
	</view>
</template>

<script>
	export default {
		data() {
			return {
				content:"",
			}
		},
		methods: {
			feedback() {
				this.$api.feedback({
					content:this.content
				}).then(res=>{
					
				})
			},
			toBackPage(){
				uni.navigateBack()
			}
		}
	}
</script>

<style scoped lang="scss">
	.content {
		background: #FFFFFF;
		width: 750rpx;
		height: 100vh;
		display: flex;
		flex-direction: column;
		align-items: center;
		
		
		
		.top{
			width: 100%;
			display: flex;
			flex-direction: row;
			justify-content: space-between;
			align-items: center;
			
			padding: 20rpx 0;
			
			background-color: white;
			margin-top: 80rpx;
		}
		
		.form {
			display: flex;
			flex-direction: column;
			align-items: center;
			
			.avatar {
				margin-top: 40rpx;
				display: flex;
				flex-direction: column;
				justify-content: center;
				align-items: center;
			}
			
			.inputWrapper {
				width: 600rpx;
				height: 120rpx;
				background: white;
				border-radius: 20rpx;
				overflow: hidden;
				box-sizing: border-box;
				margin-top: 30rpx;
			}
			
			.textareaWrapper{
				width: 600rpx;
				height: 800rpx;
				background: white;
				border-radius: 20rpx;
				overflow: hidden;
				box-sizing: border-box;
				margin-top: 30rpx;
			}
			
			.inputWrapper .input {
				width: 520rpx;
				padding: 0 40rpx;
				height: 100%;
				border-radius: 20rpx;
				font-size: 15px;
			}
			
			.loginBtn {
				width: 600rpx;
				height: 100rpx;
				background: #5DACB1;
				border-radius: 20rpx;
				margin-top: 30rpx;
				display: flex;
				justify-content: center;
				align-items: center;
			
			}
			
			.loginBtn .btnValue {
				color: white;
			}
			
		}
		
	}
</style>
